package com.tom.school.service.impl;

import com.tom.school.mapper.IndexMapper;
import com.tom.school.model.SchoolCategory;
import com.tom.school.service.IndexService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class IndexServiceImpl implements IndexService {
    @Resource
    private IndexMapper indexMapper;
    @Override
    public List<SchoolCategory> getAllCategory() {
        return indexMapper.getAllCategory();
    }
}
